﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="MvcMall.AdminWeb.Login" %>

<%@ Register TagPrefix="UC" Namespace="MvcMall.Framework.FormValidator" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户登录 - 星汇购运营管理平台</title>
    <link href="Scripts/Validate/pagevalidator.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/jquery-1.4.4.min.js" type="text/javascript"></script>
    <script src="Scripts/Validate/pagevalidator.js" type="text/javascript"></script>
    <link href="Styles/themes/base/Login.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        $(function () {
            $('#txtUserName').select();
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="leftform">
        <div class="conLeftForm">
        </div>
    </div>
    <div class="rightform">
        <div class="conRightForm">
            <div class="dataForm">
                <table>
                    <tr>
                        <td colspan="3">
                        </td>
                    </tr>
                    <tr>
                        <td>
                            用户名:
                        </td>
                        <td>
                            <asp:TextBox ID="txtUserName" Style="width: 135px;" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <div id="txtUserNameTip">
                            </div>
                            <UC:ValidateTarget ContainerId="ValidatorContainer" runat="server" OkMessage="OK"
                                FocusMessage="请输入用户名" ControlToValidate="txtUserName" Nullable="false" NullMessage="用户名不能为空">
                                <Validators>
                                    <UC:InputStringClientValidator ErrorMessage="请输入用户名(5-20位字符)" LowerBound="5" UpperBound="20" />
                                </Validators>
                            </UC:ValidateTarget>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            密码:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPaw" TextMode="Password" Style="width: 135px;" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <div id="txtPawTip">
                            </div>
                            <UC:ValidateTarget ContainerId="ValidatorContainer" runat="server" OkMessage="OK"
                                NullMessage="密码不能为空" ControlToValidate="txtPaw" Nullable="false" FocusMessage="请输入登录密码">
                                <Validators>
                                    <UC:InputStringClientValidator ErrorMessage="输入密码格式不正确" LowerBound="5" UpperBound="30" />
                                </Validators>
                            </UC:ValidateTarget>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            验证码:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCode" Style="width: 50px;" runat="server" MaxLength="4"></asp:TextBox><img
                                id="codeImage" src="/Handlers/ValidateCodeHandler.ashx" alt="看不清楚?请点击刷新" onclick="this.src=this.src+'?'"
                                style="cursor: pointer" />
                        </td>
                        <td>
                            <div id="txtCodeTip">
                            </div>
                            <UC:ValidateTarget ContainerId="ValidatorContainer" runat="server" OkMessage="OK"
                                NullMessage="验证码不能为空" ControlToValidate="txtCode" Description="请输入验证码" Nullable="false"
                                FocusMessage="请输入验证码">
                                <Validators>
                                    <UC:InputStringClientValidator ErrorMessage="输入验证码格式不正确" LowerBound="4" UpperBound="4" />
                                </Validators>
                            </UC:ValidateTarget>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                        <td colspan="2">
                            <asp:Button ID="btnOK" runat="server" Text=" 登陆 " CssClass="cssBtn" OnClientClick="return PageIsValid();"
                                OnClick="btnOK_Click" />
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
    <UC:ValidatorContainer runat="server" IsScriptManagerInside="false" ID="ValidatorContainer" />
    </form>
</body>
</html>
